package com.xjtu.mybatisplus.service;

import com.xjtu.mybatisplus.model.domain.Comment;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xjtu.mybatisplus.model.vo.comment.CommentsVo;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author lsong
 * @since 2023-12-27
 */
public interface CommentService extends IService<Comment> {

    boolean addComment(Comment comment, HttpServletRequest request);

    List<CommentsVo> getCommentByArticalId(Integer id);

    void deleteByCommentId(Long id,Long userId);
}
